﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chilis.Marketing.Common
{
    public class DateHelper
    {
        public static DateTime ConvertToDate(string fecha)
        {
            var element = fecha.Split('/');
            int day = 0;
            int month = 0;
            int year = 0;

            int.TryParse(element[0], out day);
            int.TryParse(element[1], out month);
            int.TryParse(element[2], out year);

            return new DateTime(year, month, day);
             
        }    
    }
}
